﻿#ifndef ERROR_HPP
#define ERROR_HPP

#include <string>
#include <exception>
// #include <iostream>
using namespace std;


class Error : public std::exception
{
	std::string error_string;

public:
    Error() throw() {}
    Error(string text) throw()
      :
    error_string(text)
    {
        /*
         * Uncomment to show information:
         * std::cerr << "Error: " << error_string;
        */
    }

    ~Error() throw(){}

    /*virtual*/ const char* what() const throw()
    {
        return error_string.c_str();
    }

} ;

#endif